.class public Lrexsee/security/RexseeEncryption;
.super Ljava/lang/Object;
.source "RexseeEncryption.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field private static final INTERFACE_NAME:Ljava/lang/String; = "Encryption"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 0
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 51
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 52
    iput-object p1, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    .line 53
    return-void
.end method

.method static synthetic access$0(Lrexsee/security/RexseeEncryption;I[BLjava/lang/String;)[B
    .locals 1

    .prologue
    .line 70
    invoke-direct {p0, p1, p2, p3}, Lrexsee/security/RexseeEncryption;->des_(I[BLjava/lang/String;)[B

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$1(Lrexsee/security/RexseeEncryption;I[BLjava/lang/String;)[B
    .locals 1

    .prologue
    .line 101
    invoke-direct {p0, p1, p2, p3}, Lrexsee/security/RexseeEncryption;->des3_(I[BLjava/lang/String;)[B

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$2(Lrexsee/security/RexseeEncryption;I[BLjava/lang/String;)[B
    .locals 1

    .prologue
    .line 132
    invoke-direct {p0, p1, p2, p3}, Lrexsee/security/RexseeEncryption;->aes_(I[BLjava/lang/String;)[B

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$3(Lrexsee/security/RexseeEncryption;Ljava/lang/String;I[BLjava/lang/String;[B)[B
    .locals 1

    .prologue
    .line 161
    invoke-direct/range {p0 .. p5}, Lrexsee/security/RexseeEncryption;->pbe_(Ljava/lang/String;I[BLjava/lang/String;[B)[B

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$4(Lrexsee/security/RexseeEncryption;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 49
    iget-object v0, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method

.method static synthetic access$5(Ljava/lang/String;Ljava/lang/String;)Ljava/security/PublicKey;
    .locals 1

    .prologue
    .line 62
    invoke-static {p0, p1}, Lrexsee/security/RexseeEncryption;->string2publicKey_(Ljava/lang/String;Ljava/lang/String;)Ljava/security/PublicKey;

    move-result-object v0

    return-object v0
.end method

.method static synthetic access$6(Ljava/lang/String;Ljava/lang/String;)Ljava/security/PrivateKey;
    .locals 1

    .prologue
    .line 55
    invoke-static {p0, p1}, Lrexsee/security/RexseeEncryption;->string2privateKey_(Ljava/lang/String;Ljava/lang/String;)Ljava/security/PrivateKey;

    move-result-object v0

    return-object v0
.end method

.method private aesFile_(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z
    .locals 6
    .param p1, "mode"    # I
    .param p2, "sourcePath"    # Ljava/lang/String;
    .param p3, "targetPath"    # Ljava/lang/String;
    .param p4, "key"    # Ljava/lang/String;
    .param p5, "showProgress"    # Z
    .param p6, "cancelable"    # Z

    .prologue
    .line 144
    new-instance v0, Lrexsee/security/RexseeEncryption$3;

    move-object v1, p0

    move v2, p1

    move-object v3, p2

    move-object v4, p4

    move-object v5, p3

    invoke-direct/range {v0 .. v5}, Lrexsee/security/RexseeEncryption$3;-><init>(Lrexsee/security/RexseeEncryption;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 155
    .local v0, "runnable":Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;
    if-eqz p5, :cond_0

    .line 156
    new-instance v1, Lrexsee/core/browser/clazz/SyncTask;

    invoke-direct {v1}, Lrexsee/core/browser/clazz/SyncTask;-><init>()V

    iget-object v2, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {v1, v0, v2, p6}, Lrexsee/core/browser/clazz/SyncTask;->run(Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;Lrexsee/core/browser/Browser;Z)Z

    move-result v1

    .line 158
    :goto_0
    return v1

    :cond_0
    new-instance v1, Lrexsee/core/browser/clazz/SyncTask;

    invoke-direct {v1}, Lrexsee/core/browser/clazz/SyncTask;-><init>()V

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual {v1, v0, v2, v3}, Lrexsee/core/browser/clazz/SyncTask;->run(Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;Lrexsee/core/browser/Browser;Z)Z

    move-result v1

    goto :goto_0
.end method

.method private aes_(I[BLjava/lang/String;)[B
    .locals 6
    .param p1, "mode"    # I
    .param p2, "data"    # [B
    .param p3, "key"    # Ljava/lang/String;

    .prologue
    const/4 v5, 0x0

    const-string v3, "AES"

    .line 133
    if-eqz p2, :cond_0

    array-length v3, p2

    if-eqz v3, :cond_0

    if-eqz p3, :cond_0

    const-string v3, ""

    invoke-virtual {p3, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_1

    :cond_0
    move-object v3, v5

    .line 140
    :goto_0
    return-object v3

    .line 135
    :cond_1
    :try_start_0
    new-instance v2, Ljavax/crypto/spec/SecretKeySpec;

    invoke-static {p3}, Lrexsee/security/RexseeSecurity;->decodeKey(Ljava/lang/String;)[B

    move-result-object v3

    const-string v4, "AES"

    invoke-direct {v2, v3, v4}, Ljavax/crypto/spec/SecretKeySpec;-><init>([BLjava/lang/String;)V

    .line 136
    .local v2, "theKey":Ljava/security/Key;
    const-string v3, "AES"

    invoke-static {v3}, Ljavax/crypto/Cipher;->getInstance(Ljava/lang/String;)Ljavax/crypto/Cipher;

    move-result-object v0

    .line 137
    .local v0, "cipher":Ljavax/crypto/Cipher;
    invoke-virtual {v0, p1, v2}, Ljavax/crypto/Cipher;->init(ILjava/security/Key;)V

    .line 138
    invoke-virtual {v0, p2}, Ljavax/crypto/Cipher;->doFinal([B)[B
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v3

    goto :goto_0

    .line 139
    .end local v0    # "cipher":Ljavax/crypto/Cipher;
    .end local v2    # "theKey":Ljava/security/Key;
    :catch_0
    move-exception v3

    move-object v1, v3

    .local v1, "e":Ljava/lang/Exception;
    move-object v3, v5

    .line 140
    goto :goto_0
.end method

.method private des3File_(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z
    .locals 6
    .param p1, "mode"    # I
    .param p2, "sourcePath"    # Ljava/lang/String;
    .param p3, "targetPath"    # Ljava/lang/String;
    .param p4, "key"    # Ljava/lang/String;
    .param p5, "showProgress"    # Z
    .param p6, "cancelable"    # Z

    .prologue
    .line 115
    new-instance v0, Lrexsee/security/RexseeEncryption$2;

    move-object v1, p0

    move v2, p1

    move-object v3, p2

    move-object v4, p4

    move-object v5, p3

    invoke-direct/range {v0 .. v5}, Lrexsee/security/RexseeEncryption$2;-><init>(Lrexsee/security/RexseeEncryption;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 126
    .local v0, "runnable":Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;
    if-eqz p5, :cond_0

    .line 127
    new-instance v1, Lrexsee/core/browser/clazz/SyncTask;

    invoke-direct {v1}, Lrexsee/core/browser/clazz/SyncTask;-><init>()V

    iget-object v2, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {v1, v0, v2, p6}, Lrexsee/core/browser/clazz/SyncTask;->run(Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;Lrexsee/core/browser/Browser;Z)Z

    move-result v1

    .line 129
    :goto_0
    return v1

    :cond_0
    new-instance v1, Lrexsee/core/browser/clazz/SyncTask;

    invoke-direct {v1}, Lrexsee/core/browser/clazz/SyncTask;-><init>()V

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual {v1, v0, v2, v3}, Lrexsee/core/browser/clazz/SyncTask;->run(Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;Lrexsee/core/browser/Browser;Z)Z

    move-result v1

    goto :goto_0
.end method

.method private des3_(I[BLjava/lang/String;)[B
    .locals 7
    .param p1, "mode"    # I
    .param p2, "data"    # [B
    .param p3, "key"    # Ljava/lang/String;

    .prologue
    const/4 v6, 0x0

    const-string v5, "DESEDE"

    .line 102
    if-eqz p2, :cond_0

    array-length v5, p2

    if-eqz v5, :cond_0

    if-eqz p3, :cond_0

    const-string v5, ""

    invoke-virtual {p3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1

    :cond_0
    move-object v5, v6

    .line 111
    :goto_0
    return-object v5

    .line 104
    :cond_1
    :try_start_0
    new-instance v1, Ljavax/crypto/spec/DESedeKeySpec;

    invoke-static {p3}, Lrexsee/security/RexseeSecurity;->decodeKey(Ljava/lang/String;)[B

    move-result-object v5

    invoke-direct {v1, v5}, Ljavax/crypto/spec/DESedeKeySpec;-><init>([B)V

    .line 105
    .local v1, "dks":Ljavax/crypto/spec/DESedeKeySpec;
    const-string v5, "DESEDE"

    invoke-static {v5}, Ljavax/crypto/SecretKeyFactory;->getInstance(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory;

    move-result-object v3

    .line 106
    .local v3, "keyFactory":Ljavax/crypto/SecretKeyFactory;
    invoke-virtual {v3, v1}, Ljavax/crypto/SecretKeyFactory;->generateSecret(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;

    move-result-object v4

    .line 107
    .local v4, "theKey":Ljava/security/Key;
    const-string v5, "DESEDE"

    invoke-static {v5}, Ljavax/crypto/Cipher;->getInstance(Ljava/lang/String;)Ljavax/crypto/Cipher;

    move-result-object v0

    .line 108
    .local v0, "cipher":Ljavax/crypto/Cipher;
    invoke-virtual {v0, p1, v4}, Ljavax/crypto/Cipher;->init(ILjava/security/Key;)V

    .line 109
    invoke-virtual {v0, p2}, Ljavax/crypto/Cipher;->doFinal([B)[B
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v5

    goto :goto_0

    .line 110
    .end local v0    # "cipher":Ljavax/crypto/Cipher;
    .end local v1    # "dks":Ljavax/crypto/spec/DESedeKeySpec;
    .end local v3    # "keyFactory":Ljavax/crypto/SecretKeyFactory;
    .end local v4    # "theKey":Ljava/security/Key;
    :catch_0
    move-exception v5

    move-object v2, v5

    .local v2, "e":Ljava/lang/Exception;
    move-object v5, v6

    .line 111
    goto :goto_0
.end method

.method private desFile_(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z
    .locals 6
    .param p1, "mode"    # I
    .param p2, "sourcePath"    # Ljava/lang/String;
    .param p3, "targetPath"    # Ljava/lang/String;
    .param p4, "key"    # Ljava/lang/String;
    .param p5, "showProgress"    # Z
    .param p6, "cancelable"    # Z

    .prologue
    .line 84
    new-instance v0, Lrexsee/security/RexseeEncryption$1;

    move-object v1, p0

    move v2, p1

    move-object v3, p2

    move-object v4, p4

    move-object v5, p3

    invoke-direct/range {v0 .. v5}, Lrexsee/security/RexseeEncryption$1;-><init>(Lrexsee/security/RexseeEncryption;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 95
    .local v0, "runnable":Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;
    if-eqz p5, :cond_0

    .line 96
    new-instance v1, Lrexsee/core/browser/clazz/SyncTask;

    invoke-direct {v1}, Lrexsee/core/browser/clazz/SyncTask;-><init>()V

    iget-object v2, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {v1, v0, v2, p6}, Lrexsee/core/browser/clazz/SyncTask;->run(Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;Lrexsee/core/browser/Browser;Z)Z

    move-result v1

    .line 98
    :goto_0
    return v1

    :cond_0
    new-instance v1, Lrexsee/core/browser/clazz/SyncTask;

    invoke-direct {v1}, Lrexsee/core/browser/clazz/SyncTask;-><init>()V

    const/4 v2, 0x0

    const/4 v3, 0x0

    invoke-virtual {v1, v0, v2, v3}, Lrexsee/core/browser/clazz/SyncTask;->run(Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;Lrexsee/core/browser/Browser;Z)Z

    move-result v1

    goto :goto_0
.end method

.method private des_(I[BLjava/lang/String;)[B
    .locals 7
    .param p1, "mode"    # I
    .param p2, "data"    # [B
    .param p3, "key"    # Ljava/lang/String;

    .prologue
    const/4 v6, 0x0

    const-string v5, "DES"

    .line 71
    if-eqz p2, :cond_0

    array-length v5, p2

    if-eqz v5, :cond_0

    if-eqz p3, :cond_0

    const-string v5, ""

    invoke-virtual {p3, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_1

    :cond_0
    move-object v5, v6

    .line 80
    :goto_0
    return-object v5

    .line 73
    :cond_1
    :try_start_0
    new-instance v1, Ljavax/crypto/spec/DESKeySpec;

    invoke-static {p3}, Lrexsee/security/RexseeSecurity;->decodeKey(Ljava/lang/String;)[B

    move-result-object v5

    invoke-direct {v1, v5}, Ljavax/crypto/spec/DESKeySpec;-><init>([B)V

    .line 74
    .local v1, "dks":Ljavax/crypto/spec/DESKeySpec;
    const-string v5, "DES"

    invoke-static {v5}, Ljavax/crypto/SecretKeyFactory;->getInstance(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory;

    move-result-object v3

    .line 75
    .local v3, "keyFactory":Ljavax/crypto/SecretKeyFactory;
    invoke-virtual {v3, v1}, Ljavax/crypto/SecretKeyFactory;->generateSecret(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;

    move-result-object v4

    .line 76
    .local v4, "theKey":Ljava/security/Key;
    const-string v5, "DES"

    invoke-static {v5}, Ljavax/crypto/Cipher;->getInstance(Ljava/lang/String;)Ljavax/crypto/Cipher;

    move-result-object v0

    .line 77
    .local v0, "cipher":Ljavax/crypto/Cipher;
    invoke-virtual {v0, p1, v4}, Ljavax/crypto/Cipher;->init(ILjava/security/Key;)V

    .line 78
    invoke-virtual {v0, p2}, Ljavax/crypto/Cipher;->doFinal([B)[B
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v5

    goto :goto_0

    .line 79
    .end local v0    # "cipher":Ljavax/crypto/Cipher;
    .end local v1    # "dks":Ljavax/crypto/spec/DESKeySpec;
    .end local v3    # "keyFactory":Ljavax/crypto/SecretKeyFactory;
    .end local v4    # "theKey":Ljava/security/Key;
    :catch_0
    move-exception v5

    move-object v2, v5

    .local v2, "e":Ljava/lang/Exception;
    move-object v5, v6

    .line 80
    goto :goto_0
.end method

.method private pbeFile_(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z
    .locals 12
    .param p1, "algorithm"    # Ljava/lang/String;
    .param p2, "mode"    # I
    .param p3, "sourcePath"    # Ljava/lang/String;
    .param p4, "targetPath"    # Ljava/lang/String;
    .param p5, "key"    # Ljava/lang/String;
    .param p6, "salt"    # Ljava/lang/String;
    .param p7, "showProgress"    # Z
    .param p8, "cancelable"    # Z

    .prologue
    .line 176
    new-instance v4, Lrexsee/security/RexseeEncryption$4;

    move-object v5, p0

    move-object v6, p1

    move v7, p2

    move-object v8, p3

    move-object/from16 v9, p5

    move-object/from16 v10, p6

    move-object/from16 v11, p4

    invoke-direct/range {v4 .. v11}, Lrexsee/security/RexseeEncryption$4;-><init>(Lrexsee/security/RexseeEncryption;Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V

    .line 187
    .local v4, "runnable":Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;
    if-eqz p7, :cond_0

    .line 188
    new-instance v5, Lrexsee/core/browser/clazz/SyncTask;

    invoke-direct {v5}, Lrexsee/core/browser/clazz/SyncTask;-><init>()V

    iget-object v6, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    move-object v0, v5

    move-object v1, v4

    move-object v2, v6

    move/from16 v3, p8

    invoke-virtual {v0, v1, v2, v3}, Lrexsee/core/browser/clazz/SyncTask;->run(Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;Lrexsee/core/browser/Browser;Z)Z

    move-result v5

    .line 190
    :goto_0
    return v5

    :cond_0
    new-instance v5, Lrexsee/core/browser/clazz/SyncTask;

    invoke-direct {v5}, Lrexsee/core/browser/clazz/SyncTask;-><init>()V

    const/4 v6, 0x0

    const/4 v7, 0x0

    invoke-virtual {v5, v4, v6, v7}, Lrexsee/core/browser/clazz/SyncTask;->run(Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;Lrexsee/core/browser/Browser;Z)Z

    move-result v5

    goto :goto_0
.end method

.method private pbe_(Ljava/lang/String;I[BLjava/lang/String;[B)[B
    .locals 8
    .param p1, "algorithm"    # Ljava/lang/String;
    .param p2, "mode"    # I
    .param p3, "data"    # [B
    .param p4, "password"    # Ljava/lang/String;
    .param p5, "salt"    # [B

    .prologue
    const/4 v7, 0x0

    .line 162
    if-eqz p3, :cond_0

    array-length v6, p3

    if-eqz v6, :cond_0

    if-eqz p4, :cond_0

    const-string v6, ""

    invoke-virtual {p4, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    :cond_0
    move-object v6, v7

    .line 172
    :goto_0
    return-object v6

    .line 164
    :cond_1
    :try_start_0
    new-instance v3, Ljavax/crypto/spec/PBEKeySpec;

    invoke-virtual {p4}, Ljava/lang/String;->toCharArray()[C

    move-result-object v6

    invoke-direct {v3, v6}, Ljavax/crypto/spec/PBEKeySpec;-><init>([C)V

    .line 165
    .local v3, "keySpec":Ljavax/crypto/spec/PBEKeySpec;
    invoke-static {p1}, Ljavax/crypto/SecretKeyFactory;->getInstance(Ljava/lang/String;)Ljavax/crypto/SecretKeyFactory;

    move-result-object v2

    .line 166
    .local v2, "keyFactory":Ljavax/crypto/SecretKeyFactory;
    invoke-virtual {v2, v3}, Ljavax/crypto/SecretKeyFactory;->generateSecret(Ljava/security/spec/KeySpec;)Ljavax/crypto/SecretKey;

    move-result-object v5

    .line 167
    .local v5, "theKey":Ljava/security/Key;
    new-instance v4, Ljavax/crypto/spec/PBEParameterSpec;

    const/16 v6, 0x64

    invoke-direct {v4, p5, v6}, Ljavax/crypto/spec/PBEParameterSpec;-><init>([BI)V

    .line 168
    .local v4, "paramSpec":Ljavax/crypto/spec/PBEParameterSpec;
    invoke-static {p1}, Ljavax/crypto/Cipher;->getInstance(Ljava/lang/String;)Ljavax/crypto/Cipher;

    move-result-object v0

    .line 169
    .local v0, "cipher":Ljavax/crypto/Cipher;
    invoke-virtual {v0, p2, v5, v4}, Ljavax/crypto/Cipher;->init(ILjava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V

    .line 170
    invoke-virtual {v0, p3}, Ljavax/crypto/Cipher;->doFinal([B)[B
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v6

    goto :goto_0

    .line 171
    .end local v0    # "cipher":Ljavax/crypto/Cipher;
    .end local v2    # "keyFactory":Ljavax/crypto/SecretKeyFactory;
    .end local v3    # "keySpec":Ljavax/crypto/spec/PBEKeySpec;
    .end local v4    # "paramSpec":Ljavax/crypto/spec/PBEParameterSpec;
    .end local v5    # "theKey":Ljava/security/Key;
    :catch_0
    move-exception v6

    move-object v1, v6

    .local v1, "e":Ljava/lang/Exception;
    move-object v6, v7

    .line 172
    goto :goto_0
.end method

.method private static string2privateKey_(Ljava/lang/String;Ljava/lang/String;)Ljava/security/PrivateKey;
    .locals 4
    .param p0, "algorithm"    # Ljava/lang/String;
    .param p1, "key"    # Ljava/lang/String;

    .prologue
    .line 57
    :try_start_0
    invoke-static {p0}, Ljava/security/KeyFactory;->getInstance(Ljava/lang/String;)Ljava/security/KeyFactory;

    move-result-object v1

    new-instance v2, Ljava/security/spec/PKCS8EncodedKeySpec;

    invoke-static {p1}, Lrexsee/security/RexseeSecurity;->decodeKey(Ljava/lang/String;)[B

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/security/spec/PKCS8EncodedKeySpec;-><init>([B)V

    invoke-virtual {v1, v2}, Ljava/security/KeyFactory;->generatePrivate(Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v1

    .line 59
    :goto_0
    return-object v1

    .line 58
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 59
    .local v0, "e":Ljava/lang/Exception;
    const/4 v1, 0x0

    goto :goto_0
.end method

.method private static string2publicKey_(Ljava/lang/String;Ljava/lang/String;)Ljava/security/PublicKey;
    .locals 4
    .param p0, "algorithm"    # Ljava/lang/String;
    .param p1, "key"    # Ljava/lang/String;

    .prologue
    .line 64
    :try_start_0
    invoke-static {p0}, Ljava/security/KeyFactory;->getInstance(Ljava/lang/String;)Ljava/security/KeyFactory;

    move-result-object v1

    new-instance v2, Ljava/security/spec/X509EncodedKeySpec;

    invoke-static {p1}, Lrexsee/security/RexseeSecurity;->decodeKey(Ljava/lang/String;)[B

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/security/spec/X509EncodedKeySpec;-><init>([B)V

    invoke-virtual {v1, v2}, Ljava/security/KeyFactory;->generatePublic(Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v1

    .line 66
    :goto_0
    return-object v1

    .line 65
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 66
    .local v0, "e":Ljava/lang/Exception;
    const/4 v1, 0x0

    goto :goto_0
.end method


# virtual methods
.method public decryptWithAES(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 4
    .param p1, "data"    # Ljava/lang/String;
    .param p2, "key"    # Ljava/lang/String;

    .prologue
    .line 280
    const/4 v2, 0x2

    :try_start_0
    invoke-static {p1}, Lrexsee/security/RexseeSecurity;->hex2bytes(Ljava/lang/String;)[B

    move-result-object v3

    invoke-direct {p0, v2, v3, p2}, Lrexsee/security/RexseeEncryption;->aes_(I[BLjava/lang/String;)[B

    move-result-object v1

    .line 281
    .local v1, "rtn":[B
    new-instance v2, Ljava/lang/String;

    iget-object v3, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v3, v3, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    invoke-virtual {v3}, Lrexsee/core/application/RexseeApplication;->getDefaultEncoding()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v1, v3}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 283
    .end local v1    # "rtn":[B
    :goto_0
    return-object v2

    .line 282
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 283
    .local v0, "e":Ljava/lang/Exception;
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "[Exception]"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_0
.end method

.method public decryptWithAES(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z
    .locals 7
    .param p1, "sourcePath"    # Ljava/lang/String;
    .param p2, "targetPath"    # Ljava/lang/String;
    .param p3, "key"    # Ljava/lang/String;
    .param p4, "showProgress"    # Z
    .param p5, "cancelable"    # Z

    .prologue
    .line 287
    const/4 v1, 0x2

    move-object v0, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move v5, p4

    move v6, p5

    invoke-direct/range {v0 .. v6}, Lrexsee/security/RexseeEncryption;->aesFile_(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z

    move-result v0

    return v0
.end method

.method public decryptWithDES(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 4
    .param p1, "data"    # Ljava/lang/String;
    .param p2, "key"    # Ljava/lang/String;

    .prologue
    .line 225
    const/4 v2, 0x2

    :try_start_0
    invoke-static {p1}, Lrexsee/security/RexseeSecurity;->hex2bytes(Ljava/lang/String;)[B

    move-result-object v3

    invoke-direct {p0, v2, v3, p2}, Lrexsee/security/RexseeEncryption;->des_(I[BLjava/lang/String;)[B

    move-result-object v1

    .line 226
    .local v1, "rtn":[B
    new-instance v2, Ljava/lang/String;

    iget-object v3, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v3, v3, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    invoke-virtual {v3}, Lrexsee/core/application/RexseeApplication;->getDefaultEncoding()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v1, v3}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 228
    .end local v1    # "rtn":[B
    :goto_0
    return-object v2

    .line 227
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 228
    .local v0, "e":Ljava/lang/Exception;
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "[Exception]"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_0
.end method

.method public decryptWithDES(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z
    .locals 7
    .param p1, "sourcePath"    # Ljava/lang/String;
    .param p2, "targetPath"    # Ljava/lang/String;
    .param p3, "key"    # Ljava/lang/String;
    .param p4, "showProgress"    # Z
    .param p5, "cancelable"    # Z

    .prologue
    .line 232
    const/4 v1, 0x2

    move-object v0, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move v5, p4

    move v6, p5

    invoke-direct/range {v0 .. v6}, Lrexsee/security/RexseeEncryption;->desFile_(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z

    move-result v0

    return v0
.end method

.method public decryptWithDES3(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 4
    .param p1, "data"    # Ljava/lang/String;
    .param p2, "key"    # Ljava/lang/String;

    .prologue
    .line 252
    const/4 v2, 0x2

    :try_start_0
    invoke-static {p1}, Lrexsee/security/RexseeSecurity;->hex2bytes(Ljava/lang/String;)[B

    move-result-object v3

    invoke-direct {p0, v2, v3, p2}, Lrexsee/security/RexseeEncryption;->des3_(I[BLjava/lang/String;)[B

    move-result-object v1

    .line 253
    .local v1, "rtn":[B
    new-instance v2, Ljava/lang/String;

    iget-object v3, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v3, v3, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    invoke-virtual {v3}, Lrexsee/core/application/RexseeApplication;->getDefaultEncoding()Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v1, v3}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 255
    .end local v1    # "rtn":[B
    :goto_0
    return-object v2

    .line 254
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 255
    .local v0, "e":Ljava/lang/Exception;
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "[Exception]"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_0
.end method

.method public decryptWithDES3(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z
    .locals 7
    .param p1, "sourcePath"    # Ljava/lang/String;
    .param p2, "targetPath"    # Ljava/lang/String;
    .param p3, "key"    # Ljava/lang/String;
    .param p4, "showProgress"    # Z
    .param p5, "cancelable"    # Z

    .prologue
    .line 259
    const/4 v1, 0x2

    move-object v0, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move v5, p4

    move v6, p5

    invoke-direct/range {v0 .. v6}, Lrexsee/security/RexseeEncryption;->des3File_(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z

    move-result v0

    return v0
.end method

.method public decryptWithPBE(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 8
    .param p1, "algorithm"    # Ljava/lang/String;
    .param p2, "data"    # Ljava/lang/String;
    .param p3, "key"    # Ljava/lang/String;
    .param p4, "salt"    # Ljava/lang/String;

    .prologue
    .line 450
    const/4 v2, 0x2

    :try_start_0
    invoke-static {p2}, Lrexsee/security/RexseeSecurity;->hex2bytes(Ljava/lang/String;)[B

    move-result-object v3

    invoke-static {p4}, Lrexsee/security/RexseeSecurity;->hex2bytes(Ljava/lang/String;)[B

    move-result-object v5

    move-object v0, p0

    move-object v1, p1

    move-object v4, p3

    invoke-direct/range {v0 .. v5}, Lrexsee/security/RexseeEncryption;->pbe_(Ljava/lang/String;I[BLjava/lang/String;[B)[B

    move-result-object v7

    .line 451
    .local v7, "rtn":[B
    new-instance v0, Ljava/lang/String;

    iget-object v1, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    invoke-virtual {v1}, Lrexsee/core/application/RexseeApplication;->getDefaultEncoding()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v7, v1}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 453
    .end local v7    # "rtn":[B
    :goto_0
    return-object v0

    .line 452
    :catch_0
    move-exception v0

    move-object v6, v0

    .line 453
    .local v6, "e":Ljava/lang/Exception;
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "[Exception]"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public decryptWithPBE(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z
    .locals 9
    .param p1, "algorithm"    # Ljava/lang/String;
    .param p2, "sourcePath"    # Ljava/lang/String;
    .param p3, "targetPath"    # Ljava/lang/String;
    .param p4, "key"    # Ljava/lang/String;
    .param p5, "salt"    # Ljava/lang/String;
    .param p6, "showProgress"    # Z
    .param p7, "cancelable"    # Z

    .prologue
    .line 457
    const/4 v2, 0x2

    move-object v0, p0

    move-object v1, p1

    move-object v3, p2

    move-object v4, p3

    move-object v5, p4

    move-object v6, p5

    move v7, p6

    move/from16 v8, p7

    invoke-direct/range {v0 .. v8}, Lrexsee/security/RexseeEncryption;->pbeFile_(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z

    move-result v0

    return v0
.end method

.method public decryptWithRSA(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
    .locals 11
    .param p1, "dataString"    # Ljava/lang/String;
    .param p2, "key"    # Ljava/lang/String;
    .param p3, "isPublicKey"    # Z

    .prologue
    const-string v9, "RSA"

    .line 318
    if-eqz p1, :cond_0

    invoke-virtual {p1}, Ljava/lang/String;->length()I

    move-result v9

    if-nez v9, :cond_1

    :cond_0
    const-string v9, "[Exception]Data Error."

    .line 335
    :goto_0
    return-object v9

    .line 319
    :cond_1
    if-eqz p2, :cond_2

    const-string v9, ""

    invoke-virtual {p2, v9}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v9

    if-eqz v9, :cond_3

    :cond_2
    const-string v9, "[Exception]Key Error."

    goto :goto_0

    .line 320
    :cond_3
    invoke-static {p1}, Lrexsee/security/RexseeSecurity;->hex2bytes(Ljava/lang/String;)[B

    move-result-object v3

    .line 322
    .local v3, "data":[B
    if-eqz p3, :cond_4

    :try_start_0
    const-string v9, "RSA"

    invoke-static {v9, p2}, Lrexsee/security/RexseeEncryption;->string2publicKey_(Ljava/lang/String;Ljava/lang/String;)Ljava/security/PublicKey;

    move-result-object v9

    move-object v8, v9

    .line 323
    .local v8, "theKey":Ljava/security/Key;
    :goto_1
    const-string v9, "RSA"

    invoke-static {v9}, Ljavax/crypto/Cipher;->getInstance(Ljava/lang/String;)Ljavax/crypto/Cipher;

    move-result-object v2

    .line 324
    .local v2, "cipher":Ljavax/crypto/Cipher;
    const/4 v9, 0x2

    invoke-virtual {v2, v9, v8}, Ljavax/crypto/Cipher;->init(ILjava/security/Key;)V

    .line 326
    invoke-virtual {v2}, Ljavax/crypto/Cipher;->getBlockSize()I

    move-result v0

    .line 327
    .local v0, "blockSize":I
    array-length v9, v3

    div-int v1, v9, v0

    .line 328
    .local v1, "blocks":I
    new-instance v4, Ljava/io/ByteArrayOutputStream;

    array-length v9, v3

    invoke-direct {v4, v9}, Ljava/io/ByteArrayOutputStream;-><init>(I)V

    .line 329
    .local v4, "decodedStream":Ljava/io/ByteArrayOutputStream;
    const/4 v6, 0x0

    .local v6, "i":I
    :goto_2
    if-lt v6, v1, :cond_5

    .line 332
    invoke-virtual {v4}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v7

    .line 333
    .local v7, "rtn":[B
    new-instance v9, Ljava/lang/String;

    iget-object v10, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v10, v10, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    invoke-virtual {v10}, Lrexsee/core/application/RexseeApplication;->getDefaultEncoding()Ljava/lang/String;

    move-result-object v10

    invoke-direct {v9, v7, v10}, Ljava/lang/String;-><init>([BLjava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 334
    .end local v0    # "blockSize":I
    .end local v1    # "blocks":I
    .end local v2    # "cipher":Ljavax/crypto/Cipher;
    .end local v4    # "decodedStream":Ljava/io/ByteArrayOutputStream;
    .end local v6    # "i":I
    .end local v7    # "rtn":[B
    .end local v8    # "theKey":Ljava/security/Key;
    :catch_0
    move-exception v9

    move-object v5, v9

    .line 335
    .local v5, "e":Ljava/lang/Exception;
    new-instance v9, Ljava/lang/StringBuilder;

    const-string v10, "[Exception]Encryption:"

    invoke-direct {v9, v10}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v5}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v10

    invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v9

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v9

    goto :goto_0

    .line 322
    .end local v5    # "e":Ljava/lang/Exception;
    :cond_4
    :try_start_1
    const-string v9, "RSA"

    invoke-static {v9, p2}, Lrexsee/security/RexseeEncryption;->string2privateKey_(Ljava/lang/String;Ljava/lang/String;)Ljava/security/PrivateKey;

    move-result-object v9

    move-object v8, v9

    goto :goto_1

    .line 330
    .restart local v0    # "blockSize":I
    .restart local v1    # "blocks":I
    .restart local v2    # "cipher":Ljavax/crypto/Cipher;
    .restart local v4    # "decodedStream":Ljava/io/ByteArrayOutputStream;
    .restart local v6    # "i":I
    .restart local v8    # "theKey":Ljava/security/Key;
    :cond_5
    mul-int v9, v6, v0

    invoke-virtual {v2, v3, v9, v0}, Ljavax/crypto/Cipher;->doFinal([BII)[B

    move-result-object v9

    invoke-virtual {v4, v9}, Ljava/io/ByteArrayOutputStream;->write([B)V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    .line 329
    add-int/lit8 v6, v6, 0x1

    goto :goto_2
.end method

.method public decryptWithRSA(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZ)Z
    .locals 7
    .param p1, "sourcePath"    # Ljava/lang/String;
    .param p2, "targetPath"    # Ljava/lang/String;
    .param p3, "key"    # Ljava/lang/String;
    .param p4, "isPublicKey"    # Z
    .param p5, "showProgress"    # Z
    .param p6, "cancelable"    # Z

    .prologue
    const/4 v6, 0x0

    .line 382
    if-eqz p3, :cond_0

    const-string v1, ""

    invoke-virtual {p3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 383
    :cond_0
    iget-object v1, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/security/RexseeEncryption;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    const-string v3, "Error RSA key."

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v1, v6

    .line 420
    :goto_0
    return v1

    .line 386
    :cond_1
    new-instance v0, Lrexsee/security/RexseeEncryption$6;

    move-object v1, p0

    move-object v2, p1

    move-object v3, p2

    move v4, p4

    move-object v5, p3

    invoke-direct/range {v0 .. v5}, Lrexsee/security/RexseeEncryption$6;-><init>(Lrexsee/security/RexseeEncryption;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V

    .line 417
    .local v0, "runnable":Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;
    if-eqz p5, :cond_2

    .line 418
    new-instance v1, Lrexsee/core/browser/clazz/SyncTask;

    invoke-direct {v1}, Lrexsee/core/browser/clazz/SyncTask;-><init>()V

    iget-object v2, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {v1, v0, v2, p6}, Lrexsee/core/browser/clazz/SyncTask;->run(Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;Lrexsee/core/browser/Browser;Z)Z

    move-result v1

    goto :goto_0

    .line 420
    :cond_2
    new-instance v1, Lrexsee/core/browser/clazz/SyncTask;

    invoke-direct {v1}, Lrexsee/core/browser/clazz/SyncTask;-><init>()V

    const/4 v2, 0x0

    invoke-virtual {v1, v0, v2, v6}, Lrexsee/core/browser/clazz/SyncTask;->run(Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;Lrexsee/core/browser/Browser;Z)Z

    move-result v1

    goto :goto_0
.end method

.method public encryptWithAES(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 4
    .param p1, "data"    # Ljava/lang/String;
    .param p2, "key"    # Ljava/lang/String;

    .prologue
    .line 269
    const/4 v2, 0x1

    :try_start_0
    iget-object v3, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v3, v3, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    invoke-virtual {v3}, Lrexsee/core/application/RexseeApplication;->getDefaultEncoding()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1, v3}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v3

    invoke-direct {p0, v2, v3, p2}, Lrexsee/security/RexseeEncryption;->aes_(I[BLjava/lang/String;)[B

    move-result-object v1

    .line 270
    .local v1, "rtn":[B
    invoke-static {v1}, Lrexsee/security/RexseeSecurity;->bytes2hex([B)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v2

    .line 272
    .end local v1    # "rtn":[B
    :goto_0
    return-object v2

    .line 271
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 272
    .local v0, "e":Ljava/lang/Exception;
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "[Exception]"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_0
.end method

.method public encryptWithAES(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z
    .locals 7
    .param p1, "sourcePath"    # Ljava/lang/String;
    .param p2, "targetPath"    # Ljava/lang/String;
    .param p3, "key"    # Ljava/lang/String;
    .param p4, "showProgress"    # Z
    .param p5, "cancelable"    # Z

    .prologue
    .line 276
    const/4 v1, 0x1

    move-object v0, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move v5, p4

    move v6, p5

    invoke-direct/range {v0 .. v6}, Lrexsee/security/RexseeEncryption;->aesFile_(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z

    move-result v0

    return v0
.end method

.method public encryptWithDES(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 4
    .param p1, "data"    # Ljava/lang/String;
    .param p2, "key"    # Ljava/lang/String;

    .prologue
    .line 214
    const/4 v2, 0x1

    :try_start_0
    iget-object v3, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v3, v3, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    invoke-virtual {v3}, Lrexsee/core/application/RexseeApplication;->getDefaultEncoding()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1, v3}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v3

    invoke-direct {p0, v2, v3, p2}, Lrexsee/security/RexseeEncryption;->des_(I[BLjava/lang/String;)[B

    move-result-object v1

    .line 215
    .local v1, "rtn":[B
    invoke-static {v1}, Lrexsee/security/RexseeSecurity;->bytes2hex([B)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v2

    .line 217
    .end local v1    # "rtn":[B
    :goto_0
    return-object v2

    .line 216
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 217
    .local v0, "e":Ljava/lang/Exception;
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "[Exception]"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_0
.end method

.method public encryptWithDES(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z
    .locals 7
    .param p1, "sourcePath"    # Ljava/lang/String;
    .param p2, "targetPath"    # Ljava/lang/String;
    .param p3, "key"    # Ljava/lang/String;
    .param p4, "showProgress"    # Z
    .param p5, "cancelable"    # Z

    .prologue
    .line 221
    const/4 v1, 0x1

    move-object v0, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move v5, p4

    move v6, p5

    invoke-direct/range {v0 .. v6}, Lrexsee/security/RexseeEncryption;->desFile_(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z

    move-result v0

    return v0
.end method

.method public encryptWithDES3(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 4
    .param p1, "data"    # Ljava/lang/String;
    .param p2, "key"    # Ljava/lang/String;

    .prologue
    .line 241
    const/4 v2, 0x1

    :try_start_0
    iget-object v3, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v3, v3, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    invoke-virtual {v3}, Lrexsee/core/application/RexseeApplication;->getDefaultEncoding()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {p1, v3}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v3

    invoke-direct {p0, v2, v3, p2}, Lrexsee/security/RexseeEncryption;->des3_(I[BLjava/lang/String;)[B

    move-result-object v1

    .line 242
    .local v1, "rtn":[B
    invoke-static {v1}, Lrexsee/security/RexseeSecurity;->bytes2hex([B)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v2

    .line 244
    .end local v1    # "rtn":[B
    :goto_0
    return-object v2

    .line 243
    :catch_0
    move-exception v2

    move-object v0, v2

    .line 244
    .local v0, "e":Ljava/lang/Exception;
    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "[Exception]"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    goto :goto_0
.end method

.method public encryptWithDES3(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z
    .locals 7
    .param p1, "sourcePath"    # Ljava/lang/String;
    .param p2, "targetPath"    # Ljava/lang/String;
    .param p3, "key"    # Ljava/lang/String;
    .param p4, "showProgress"    # Z
    .param p5, "cancelable"    # Z

    .prologue
    .line 248
    const/4 v1, 0x1

    move-object v0, p0

    move-object v2, p1

    move-object v3, p2

    move-object v4, p3

    move v5, p4

    move v6, p5

    invoke-direct/range {v0 .. v6}, Lrexsee/security/RexseeEncryption;->des3File_(ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z

    move-result v0

    return v0
.end method

.method public encryptWithPBE(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
    .locals 8
    .param p1, "algorithm"    # Ljava/lang/String;
    .param p2, "data"    # Ljava/lang/String;
    .param p3, "key"    # Ljava/lang/String;
    .param p4, "salt"    # Ljava/lang/String;

    .prologue
    .line 439
    const/4 v2, 0x1

    :try_start_0
    iget-object v0, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v0, v0, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    invoke-virtual {v0}, Lrexsee/core/application/RexseeApplication;->getDefaultEncoding()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v3

    invoke-static {p4}, Lrexsee/security/RexseeSecurity;->hex2bytes(Ljava/lang/String;)[B

    move-result-object v5

    move-object v0, p0

    move-object v1, p1

    move-object v4, p3

    invoke-direct/range {v0 .. v5}, Lrexsee/security/RexseeEncryption;->pbe_(Ljava/lang/String;I[BLjava/lang/String;[B)[B

    move-result-object v7

    .line 440
    .local v7, "rtn":[B
    invoke-static {v7}, Lrexsee/security/RexseeSecurity;->bytes2hex([B)Ljava/lang/String;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result-object v0

    .line 442
    .end local v7    # "rtn":[B
    :goto_0
    return-object v0

    .line 441
    :catch_0
    move-exception v0

    move-object v6, v0

    .line 442
    .local v6, "e":Ljava/lang/Exception;
    new-instance v0, Ljava/lang/StringBuilder;

    const-string v1, "[Exception]"

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v6}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public encryptWithPBE(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z
    .locals 9
    .param p1, "algorithm"    # Ljava/lang/String;
    .param p2, "sourcePath"    # Ljava/lang/String;
    .param p3, "targetPath"    # Ljava/lang/String;
    .param p4, "key"    # Ljava/lang/String;
    .param p5, "salt"    # Ljava/lang/String;
    .param p6, "showProgress"    # Z
    .param p7, "cancelable"    # Z

    .prologue
    .line 446
    const/4 v2, 0x1

    move-object v0, p0

    move-object v1, p1

    move-object v3, p2

    move-object v4, p3

    move-object v5, p4

    move-object v6, p5

    move v7, p6

    move/from16 v8, p7

    invoke-direct/range {v0 .. v8}, Lrexsee/security/RexseeEncryption;->pbeFile_(Ljava/lang/String;ILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZ)Z

    move-result v0

    return v0
.end method

.method public encryptWithRSA(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
    .locals 19
    .param p1, "dataString"    # Ljava/lang/String;
    .param p2, "key"    # Ljava/lang/String;
    .param p3, "isPublicKey"    # Z

    .prologue
    .line 293
    if-eqz p1, :cond_0

    invoke-virtual/range {p1 .. p1}, Ljava/lang/String;->length()I

    move-result v5

    if-nez v5, :cond_1

    :cond_0
    const-string v5, "[Exception]Data Error."

    .line 314
    :goto_0
    return-object v5

    .line 294
    :cond_1
    if-eqz p2, :cond_2

    const-string v5, ""

    move-object/from16 v0, p2

    move-object v1, v5

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_3

    :cond_2
    const-string v5, "[Exception]Key Error."

    goto :goto_0

    .line 296
    :cond_3
    :try_start_0
    move-object/from16 v0, p0

    iget-object v0, v0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    move-object v5, v0

    iget-object v5, v5, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    invoke-virtual {v5}, Lrexsee/core/application/RexseeApplication;->getDefaultEncoding()Ljava/lang/String;

    move-result-object v5

    move-object/from16 v0, p1

    move-object v1, v5

    invoke-virtual {v0, v1}, Ljava/lang/String;->getBytes(Ljava/lang/String;)[B

    move-result-object v4

    .line 297
    .local v4, "data":[B
    if-eqz p3, :cond_5

    const-string v5, "RSA"

    move-object v0, v5

    move-object/from16 v1, p2

    invoke-static {v0, v1}, Lrexsee/security/RexseeEncryption;->string2publicKey_(Ljava/lang/String;Ljava/lang/String;)Ljava/security/PublicKey;

    move-result-object v5

    move-object/from16 v18, v5

    .line 298
    .local v18, "theKey":Ljava/security/Key;
    :goto_1
    const-string v5, "RSA"

    invoke-static {v5}, Ljavax/crypto/Cipher;->getInstance(Ljava/lang/String;)Ljavax/crypto/Cipher;

    move-result-object v3

    .line 299
    .local v3, "cipher":Ljavax/crypto/Cipher;
    const/4 v5, 0x1

    move-object v0, v3

    move v1, v5

    move-object/from16 v2, v18

    invoke-virtual {v0, v1, v2}, Ljavax/crypto/Cipher;->init(ILjava/security/Key;)V

    .line 301
    invoke-virtual {v3}, Ljavax/crypto/Cipher;->getBlockSize()I

    move-result v6

    .line 302
    .local v6, "blockSize":I
    add-int/lit8 v17, v6, 0x1

    .line 303
    .local v17, "outputBlockSize":I
    array-length v5, v4

    div-int v14, v5, v6

    .line 304
    .local v14, "blocks":I
    array-length v5, v4

    rem-int v11, v5, v6

    .line 305
    .local v11, "lastBlockSize":I
    if-nez v11, :cond_6

    move v5, v14

    :goto_2
    mul-int v5, v5, v17

    new-array v7, v5, [B

    .line 306
    .local v7, "rtn":[B
    const/16 v16, 0x0

    .local v16, "i":I
    :goto_3
    move/from16 v0, v16

    move v1, v14

    if-lt v0, v1, :cond_7

    .line 309
    if-eqz v11, :cond_4

    .line 310
    mul-int v10, v14, v6

    mul-int v13, v14, v17

    move-object v8, v3

    move-object v9, v4

    move-object v12, v7

    invoke-virtual/range {v8 .. v13}, Ljavax/crypto/Cipher;->doFinal([BII[BI)I

    .line 312
    :cond_4
    invoke-static {v7}, Lrexsee/security/RexseeSecurity;->bytes2hex([B)Ljava/lang/String;

    move-result-object v5

    goto :goto_0

    .line 297
    .end local v3    # "cipher":Ljavax/crypto/Cipher;
    .end local v6    # "blockSize":I
    .end local v7    # "rtn":[B
    .end local v11    # "lastBlockSize":I
    .end local v14    # "blocks":I
    .end local v16    # "i":I
    .end local v17    # "outputBlockSize":I
    .end local v18    # "theKey":Ljava/security/Key;
    :cond_5
    const-string v5, "RSA"

    move-object v0, v5

    move-object/from16 v1, p2

    invoke-static {v0, v1}, Lrexsee/security/RexseeEncryption;->string2privateKey_(Ljava/lang/String;Ljava/lang/String;)Ljava/security/PrivateKey;

    move-result-object v5

    move-object/from16 v18, v5

    goto :goto_1

    .line 305
    .restart local v3    # "cipher":Ljavax/crypto/Cipher;
    .restart local v6    # "blockSize":I
    .restart local v11    # "lastBlockSize":I
    .restart local v14    # "blocks":I
    .restart local v17    # "outputBlockSize":I
    .restart local v18    # "theKey":Ljava/security/Key;
    :cond_6
    add-int/lit8 v5, v14, 0x1

    goto :goto_2

    .line 307
    .restart local v7    # "rtn":[B
    .restart local v16    # "i":I
    :cond_7
    mul-int v5, v16, v6

    mul-int v8, v16, v17

    invoke-virtual/range {v3 .. v8}, Ljavax/crypto/Cipher;->doFinal([BII[BI)I
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 306
    add-int/lit8 v16, v16, 0x1

    goto :goto_3

    .line 313
    .end local v3    # "cipher":Ljavax/crypto/Cipher;
    .end local v4    # "data":[B
    .end local v6    # "blockSize":I
    .end local v7    # "rtn":[B
    .end local v11    # "lastBlockSize":I
    .end local v14    # "blocks":I
    .end local v16    # "i":I
    .end local v17    # "outputBlockSize":I
    .end local v18    # "theKey":Ljava/security/Key;
    :catch_0
    move-exception v5

    move-object v15, v5

    .line 314
    .local v15, "e":Ljava/lang/Exception;
    new-instance v5, Ljava/lang/StringBuilder;

    const-string v6, "[Exception]Encryption:"

    invoke-direct {v5, v6}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v15}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v5

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v5

    goto/16 :goto_0
.end method

.method public encryptWithRSA(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZZZ)Z
    .locals 7
    .param p1, "sourcePath"    # Ljava/lang/String;
    .param p2, "targetPath"    # Ljava/lang/String;
    .param p3, "key"    # Ljava/lang/String;
    .param p4, "isPublicKey"    # Z
    .param p5, "showProgress"    # Z
    .param p6, "cancelable"    # Z

    .prologue
    const/4 v6, 0x0

    .line 340
    if-eqz p3, :cond_0

    const-string v1, ""

    invoke-virtual {p3, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 341
    :cond_0
    iget-object v1, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {p0}, Lrexsee/security/RexseeEncryption;->getInterfaceName()Ljava/lang/String;

    move-result-object v2

    const-string v3, "Error RSA key"

    invoke-virtual {v1, v2, v3}, Lrexsee/core/browser/Browser;->exception(Ljava/lang/String;Ljava/lang/String;)V

    move v1, v6

    .line 378
    :goto_0
    return v1

    .line 344
    :cond_1
    new-instance v0, Lrexsee/security/RexseeEncryption$5;

    move-object v1, p0

    move-object v2, p1

    move-object v3, p2

    move v4, p4

    move-object v5, p3

    invoke-direct/range {v0 .. v5}, Lrexsee/security/RexseeEncryption$5;-><init>(Lrexsee/security/RexseeEncryption;Ljava/lang/String;Ljava/lang/String;ZLjava/lang/String;)V

    .line 375
    .local v0, "runnable":Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;
    if-eqz p5, :cond_2

    .line 376
    new-instance v1, Lrexsee/core/browser/clazz/SyncTask;

    invoke-direct {v1}, Lrexsee/core/browser/clazz/SyncTask;-><init>()V

    iget-object v2, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    invoke-virtual {v1, v0, v2, p6}, Lrexsee/core/browser/clazz/SyncTask;->run(Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;Lrexsee/core/browser/Browser;Z)Z

    move-result v1

    goto :goto_0

    .line 378
    :cond_2
    new-instance v1, Lrexsee/core/browser/clazz/SyncTask;

    invoke-direct {v1}, Lrexsee/core/browser/clazz/SyncTask;-><init>()V

    const/4 v2, 0x0

    invoke-virtual {v1, v0, v2, v6}, Lrexsee/core/browser/clazz/SyncTask;->run(Lrexsee/core/browser/clazz/SyncTask$BooleanRunnable;Lrexsee/core/browser/Browser;Z)Z

    move-result v1

    goto :goto_0
.end method

.method public generateAESKey(Ljava/lang/String;I)Ljava/lang/String;
    .locals 1
    .param p1, "seed"    # Ljava/lang/String;
    .param p2, "keySize"    # I

    .prologue
    .line 264
    const/16 v0, 0x80

    if-eq p2, v0, :cond_0

    const/16 v0, 0xc0

    if-eq p2, v0, :cond_0

    const/16 v0, 0x100

    if-eq p2, v0, :cond_0

    const-string v0, "[Exception]Invalid key size. AES key size must be 128, 192 or 256."

    .line 265
    :goto_0
    return-object v0

    :cond_0
    const-string v0, "AES"

    invoke-virtual {p0, v0, p1, p2}, Lrexsee/security/RexseeEncryption;->generateKey_(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    goto :goto_0
.end method

.method public generateDES3Key(Ljava/lang/String;)Ljava/lang/String;
    .locals 2
    .param p1, "seed"    # Ljava/lang/String;

    .prologue
    .line 237
    const-string v0, "DESEDE"

    const/16 v1, 0xc0

    invoke-virtual {p0, v0, p1, v1}, Lrexsee/security/RexseeEncryption;->generateKey_(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public generateDESKey(Ljava/lang/String;)Ljava/lang/String;
    .locals 2
    .param p1, "seed"    # Ljava/lang/String;

    .prologue
    .line 210
    const-string v0, "DES"

    const/16 v1, 0x40

    invoke-virtual {p0, v0, p1, v1}, Lrexsee/security/RexseeEncryption;->generateKey_(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public generateKey_(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
    .locals 6
    .param p1, "algorithm"    # Ljava/lang/String;
    .param p2, "seed"    # Ljava/lang/String;
    .param p3, "keySize"    # I

    .prologue
    .line 196
    if-eqz p2, :cond_0

    :try_start_0
    const-string v4, ""

    invoke-virtual {p2, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_1

    :cond_0
    new-instance v4, Ljava/security/SecureRandom;

    invoke-direct {v4}, Ljava/security/SecureRandom;-><init>()V

    move-object v3, v4

    .line 197
    .local v3, "secureRandom":Ljava/security/SecureRandom;
    :goto_0
    invoke-static {p1}, Ljavax/crypto/KeyGenerator;->getInstance(Ljava/lang/String;)Ljavax/crypto/KeyGenerator;

    move-result-object v1

    .line 198
    .local v1, "keyGenerator":Ljavax/crypto/KeyGenerator;
    invoke-virtual {v1, p3, v3}, Ljavax/crypto/KeyGenerator;->init(ILjava/security/SecureRandom;)V

    .line 199
    invoke-virtual {v1}, Ljavax/crypto/KeyGenerator;->generateKey()Ljavax/crypto/SecretKey;

    move-result-object v2

    .line 200
    .local v2, "secretKey":Ljavax/crypto/SecretKey;
    invoke-static {v2}, Lrexsee/security/RexseeSecurity;->key2string_(Ljava/security/Key;)Ljava/lang/String;

    move-result-object v4

    .line 202
    .end local v1    # "keyGenerator":Ljavax/crypto/KeyGenerator;
    .end local v2    # "secretKey":Ljavax/crypto/SecretKey;
    .end local v3    # "secureRandom":Ljava/security/SecureRandom;
    :goto_1
    return-object v4

    .line 196
    :cond_1
    new-instance v4, Ljava/security/SecureRandom;

    invoke-virtual {p2}, Ljava/lang/String;->getBytes()[B

    move-result-object v5

    invoke-direct {v4, v5}, Ljava/security/SecureRandom;-><init>([B)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-object v3, v4

    goto :goto_0

    .line 201
    :catch_0
    move-exception v4

    move-object v0, v4

    .line 202
    .local v0, "e":Ljava/lang/Exception;
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "[Exception]"

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    goto :goto_1
.end method

.method public generatePBESalt(I)Ljava/lang/String;
    .locals 3
    .param p1, "saleSize"    # I

    .prologue
    .line 426
    new-array v1, p1, [B

    .line 427
    .local v1, "salt":[B
    new-instance v0, Ljava/util/Random;

    invoke-direct {v0}, Ljava/util/Random;-><init>()V

    .line 428
    .local v0, "random":Ljava/util/Random;
    invoke-virtual {v0, v1}, Ljava/util/Random;->nextBytes([B)V

    .line 429
    invoke-static {v1}, Lrexsee/security/RexseeSecurity;->bytes2hex([B)Ljava/lang/String;

    move-result-object v2

    return-object v2
.end method

.method public generatePBESalt(JI)Ljava/lang/String;
    .locals 3
    .param p1, "seed"    # J
    .param p3, "saleSize"    # I

    .prologue
    .line 432
    new-array v1, p3, [B

    .line 433
    .local v1, "salt":[B
    new-instance v0, Ljava/util/Random;

    invoke-direct {v0, p1, p2}, Ljava/util/Random;-><init>(J)V

    .line 434
    .local v0, "random":Ljava/util/Random;
    invoke-virtual {v0, v1}, Ljava/util/Random;->nextBytes([B)V

    .line 435
    invoke-static {v1}, Lrexsee/security/RexseeSecurity;->bytes2hex([B)Ljava/lang/String;

    move-result-object v2

    return-object v2
.end method

.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 0
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 42
    return-object p0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 38
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/security/RexseeEncryption;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "Encryption"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 46
    new-instance v0, Lrexsee/security/RexseeEncryption;

    invoke-direct {v0, p1}, Lrexsee/security/RexseeEncryption;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method
